package com.nbpt;

import android.content.Context;
import android.content.SharedPreferences;
import android.support.v7.app.AppCompatActivity;
import android.os.Bundle;
import android.widget.TextView;

public class MenuActivity extends AppCompatActivity {
    SharedPreferences sp;
    TextView tvToken;
    @Override
    protected void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.activity_menu);

        tvToken = findViewById(R.id.tvToken);

        sp = getSharedPreferences("token",Context.MODE_PRIVATE);
        String token = sp.getString("token","no token");
        tvToken.setText(token);
    }
}
